package com.bookstore.admin.product.service;

import com.bookstore.commons.beans.*;

import java.util.List;

/**
 * company: www.abc.com
 * Author: Administrator
 * Create Data: 2021/6/2 0002
 */
public interface AdminProductService {
    List<Product> findProductList();

    Product findProductById(String id);

    int deleteProduct(String id);

    int editProduct(Product product);

    List<Product> findProductByManyCondition(Product product, Double minprice, Double maxprice);

    int findProductCountByCategory(Product product, Double minprice, Double maxprice);

    List<ProductList> findProductSalList(String year, String month);

    int addProduct(Product product);

    List<Order> findOrderList(Order order);

    List<Orderitem> findOrderItemById(String id);

    List<Notice> findNotice();

    Notice FindByIdNoticeServlet(Integer id);

    int EditNoticeServlet(Notice notice);

    int DeleteNoticeServlet(Integer id);

    int AddNoticeServlet(Notice notice);

    Integer findUser(String logonName, String logonPwd);
}
